#!/bin/bash
cargo clean

echo "开始构建项目..."
trunk build --release --public-url /todo --dist ../bin/web/todo/

# 检查构建是否成功
if [ $? -ne 0 ]; then
    echo "构建失败，脚本将退出。"
    exit 1
fi
